type MeteInterface = {
  title: string
  icon?: string
  hidden?: boolean
}
export type RouteRecord = {
  path: string
  meta: MeteInterface
  component?: string
  redirect?: string
  layer?: string
  children?: RouteRecord[]
}
const asyncRouters: RouteRecord[] = [
  {
    path: '/home',
    redirect: '/home/index',
    layer: 'basic',
    meta: { title: '首页', icon: 'home' },
    children: [
      {
        path: '/home/index',
        meta: { title: '工作台' },
        component: '/home/index',
      },
    ],
  },
  {
    path: '/table',
    meta: {
      title: 'Table',
      icon: 'home',
    },
    redirect: '/table/index',
    layer: 'basic',
    children: [
      {
        path: '/table/index',
        meta: {
          title: '简单表格',
        },
        component: '/table/index',
      },
    ],
  },
]

export default asyncRouters
